﻿var infoWindow;
var data = window.parent.App.singleMap;

var point = data.point.split(",");
var dstPoint = data.dstPoint.split(",");
console.log(point)
//基本地图加载
var map = new AMap.Map("container_goMap", {
    resizeEnable: true,
    center: [116.397428, 39.90923],//地图中心点
    zoom: 13 //地图显示的缩放级别
});
//构造路线导航类
var driving = new AMap.Driving({
    map: map
});
// 根据起终点经纬度规划驾车导航路线
driving.search(new AMap.LngLat(point[0], point[1]), new AMap.LngLat(dstPoint[0], dstPoint[1]));